﻿<%@ Page Language="C#"  MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="NouvelleRecette2.aspx.cs" Inherits="WebApplication1.NouvelleRecette2" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
       CREATION D'UNE NOUVELLE RECETTE (Suite)
</h2>
<table>
        <tr>
            <td colspan="6" align="center">
                <asp:Label ID="lblNomRecette" runat="server"></asp:Label>
            </td>
       </tr>
  <!--COMPOSITION -->
       <tr>
        <td colspan="6" align="center">
            <h3>COMPOSITION</h3>
        </td>
       </tr>
        <!-- Titres Composition -->
       <tr>
        <td align="center">INGREDIENTS</td>
        <td align="center" class="style8">QUANTITE</td>
        <td align="center">UNITE</td>
        <td align="center"> </td>
        <td align="center"> </td>
        <td align="center"> RECAPITULATIF</td>
       </tr>
        <!--Choix des ingrédients -->
       <tr>
        <td class="style1">  <!-- Colonne 1  ListBox-->
            <asp:ListBox ID="lstIngredients" runat="server" Width="118px" 
                
                onselectedindexchanged="lstIngredients_SelectedIndexChanged" 
                AutoPostBack="True" Height="91px">
            </asp:ListBox>
        </td>
        <td class="style8"> <!-- Colonne 2  Quantité-->
            <asp:TextBox ID="txtQuantite" runat="server" Width="43px"></asp:TextBox>
        </td>
        <td> <!-- Colonne 3  Unité-->
            <asp:Label ID="lblUniteIngredient" runat="server"></asp:Label>
        </td>
        <td>  <!-- Colonne 4 Bouton Ajouter-->
            <asp:Button ID="btnChoix" runat="server" Text="Ajouter ==&gt;" 
                onclick="btnChoix_Click" /> <!--onclick="btnChoix_Click"-->
            
        </td>
        <td class="style6" colspan ="2"> <!-- Colonne 5 & 6 ListBox-->
            <asp:ListBox ID="lstIngredientsChoisis" runat="server" Width="161px" Autopostback ="true"
                Height="91px" 
                onselectedindexchanged="lstIngredientsChoisis_SelectedIndexChanged"></asp:ListBox>
        </td>
       </tr>

       <tr>

         <td colspan="6" align="center">
            <asp:Button ID="btnCreerRecette" runat="server" Text="Valider" 
                 onclick="btnCreerRecette_Click" />
        </td>
    
        </tr>

        <!--Label Test-->
        <tr> 
            <td colspan="6" align="center"> <asp:Label ID="lblTest" runat="server" Text="TEST"></asp:Label></td>
        </tr>
</table>

</asp:Content>